﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using SsrsRenderStudio.Shared;

namespace SsrsRenderStudio.KnownTypesAndModels
{
    public class ApplicationConfig10
    {
        public EnumApplicationType ApplicationType {get; set; }

        public string ApplicationName {get; set; }

        public string RemoteMasterConfiguration {get; set; }

        [IgnoreDataMember]
        public bool IsServer
        {
            get
            {
                return EnumApplicationType.SERVER == ApplicationType;
            }
        }

        [IgnoreDataMember]
        public bool IsClient
        {
            get
            {
                return EnumApplicationType.CLIENT == ApplicationType;
            }
        }
    }
}
